package edu.nyp.locationservicesapp.utils;



public class StringUtils {


    public static String getFormatNumber(String number) {
        if (number.contains(" ")) {
            number = number.replaceAll(" ", "");
        }
        if (number.contains("-")) {
            number = number.replaceAll("-", "");
        }
        if (number.contains("(") || number.contains(")")) {
            number = number.replaceAll("\\(...\\)", "");
        }
        return number;
    }
}
